import request from '@/utils/request'

//查看合同回款列表
export function listRecord(contractId) {
  return request({
    url: `/payment/${contractId}`,
    method: 'POST',
  })
}
//新增合同回款
export function addRecord(contractId,money) {
  return request({
    url: '/payment'+`/${contractId}/${money}`,
    method: 'POST',
  })
}
//删除合同回款
export function delRecord(id) {
  return request({
    url: `/payment/${id}`,
    method: 'DELETE',
  })
}
//修改合同回款
export function updateRecord(id,money) {
  return request({
    url: `/payment/${id}/${money}`,
    method: 'PUT',
  })
}
